package route;

public class Route {
	private String routeName;
	private ALoDistance distance;

	public Route(String routeName, ALoDistance distance) {
		this.routeName = routeName;
		this.distance = distance;
	}

	@Override
	public String toString() {
		return this.routeName + " _ " + this.distance;
	}

	@Override
	public boolean equals(Object o) {

		if (o == null || o instanceof Route)
			return false;
		else {
			return this.routeName.equals(routeName)
					&& this.distance.equals(distance);
		}
	}
}
